#! /usr/bin/python
# coding: utf-8

from Tkinter import *

root = Tk()

Lang = ['Pyton', 'PHP', 'CPP', 'C', 'Java', 'JavaScript']

v = StringVar(root)
v.set('Tkinter')

def printOption(event):
    print v.get()

om = apply(OptionMenu, (root, v) + tuple(Lang))

om.bind('<Button-1>', printOption)
om.pack()

root.mainloop()
